From: Nick Hainke Date: Fri, 10 Jun 2022 06:46:28 +0000 (+0200) Subject: naywatch: add log when naywatch activates X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=bdefc8348b1195114832f875678f267749d4eedf;p=feed%2Frouting.git naywatch: add log when naywatch activates Naywatch now prints naywatch: Naywatch Activated! when becoming active. Signed-off-by: Nick Hainke (cherry picked from commit 09d5ceb9230b907029a3e09858ef181ff85e3913) --- diff --git a/naywatch/files/naywatch.sh b/naywatch/files/naywatch.sh index 78c8dd4..73f5ff0 100644 --- a/naywatch/files/naywatch.sh +++ b/naywatch/files/naywatch.sh @@ -88,6 +88,9 @@ no_neighbors() { log "Naywatch Started!" neighbors() { + if [ $ACTIVE -eq 0 ]; then + log "Naywatch Activated!" + fi ACTIVE=1 NO_NEIGHBORS_COUNT=0 if [ $USE_WATCHDOG -eq 1 ]; then